<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%><%@ page import="hyl.core.db.MyDB"%><%@ page 
	import="hyl.My,hyl.core.MyFun,java.io.IOException"%><%@ page 
	import="java.util.List,java.util.Map,java.sql.Connection,java.math.BigDecimal"%><% 
response.setCharacterEncoding("UTF-8");  
response.setContentType("text/plain");  
MyDB db = My.getDb1();
	String sql1 = "select * from member where userid=? and password=?";
	String[] param = new String[2];
	param[0] =request.getParameter("userid"); 
	param[1] =request.getParameter("password"); 
	
	List<Map<String, Object>> list = db.queryList(sql1, param); 
	String s="";

	if (list.size()>0){ 
		
		session.setAttribute("name", param[0]); 
		s="success";
	} else{ 
		 s="fail";
	} 
	response.getWriter().print(s);	
%>